package com.ruoyi.generator.controller;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.exception.job.TaskException;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.generator.entity.*;
import org.quartz.SchedulerException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("statistic")
public class StatisticController extends BaseController {
    @GetMapping("/getStatistics")
    public Statistics getStatistics(@RequestParam String type) {
        System.out.println("getStatistics type:" + type);
        Statistics statistics = new Statistics();
        statistics.setCompletedValue(100);
        statistics.setChenQianPay(101);
        statistics.setThisMonthNoPay(102);
        statistics.setSewageOutputValue(103);
        statistics.setOnlineOutputValue(104);
        statistics.setNewContractAmount(105);
        statistics.setCostAmount(106);
        statistics.setUnpaidAmount(107);
        statistics.setContractCount(108);
        statistics.setMonthlyOrders(109);
        statistics.setPaymentCount(110);
        statistics.setPaymentAmount(111);
        return statistics;
    }

}
